package com.pcbly.web.components.utils.theme;

import java.io.Serializable;

public class ThemeMap  implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6188018823357059985L;
	private ThemeType type;
    private long numValue;
    private String stringValue;
    public ThemeMap(ThemeType type)
    {
        this.type = type;
    }

    public ThemeType getType()
    {
        return type;
    }

    public long getNumValue()
    {
        return numValue;
    }

    public void setNumValue(long numValue)
    {
        this.numValue = numValue;
    }

    public String getStringValue()
    {
        return stringValue;
    }

    public void setStringValue(String stringValue)
    {
        this.stringValue = stringValue;
    }

    public boolean equals(Object o)
    {
        if(this == o)
            return true;
        if(o == null || getClass() != o.getClass())
            return false;
        ThemeMap themeMap = (ThemeMap)o;
        if(numValue != themeMap.numValue)
            return false;
        if(stringValue == null ? themeMap.stringValue != null : !stringValue.equals(themeMap.stringValue))
            return false;
        return type == null ? themeMap.type == null : type.equals(themeMap.type);
    }

    public int hashCode()
    {
        int result = type == null ? 0 : type.hashCode();
        result = 31 * result + (int)(numValue ^ numValue >>> 32);
        result = 31 * result + (stringValue == null ? 0 : stringValue.hashCode());
        return result;
    }

    

}
